action-namespace example: use non-deprecated function
authorRyan Lortie <desrt@desrt.ca>
Tue, 1 Oct 2013 13:36:23 +0000 (09:36 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 1 Oct 2013 13:36:23 +0000 (09:36 -0400)
g_simple_action_group_add_entries() is deprecated since we added the GActionMap
interface, so use its equivalent function instead.

examples/action-namespace.c

index 147633a67692dbea1b749d12d999ab41b979f077..16d48cb64d1e1e2f0d3b3d8eaf4e822961496408 100644 (file)
@@ -83,8 +83,7 @@ activate (GApplication *app,
   win = gtk_application_window_new (GTK_APPLICATION (app));
 
   doc_actions = g_simple_action_group_new ();
-  g_simple_action_group_add_entries (doc_actions, doc_entries,
-                                     G_N_ELEMENTS (doc_entries), win);
+  g_action_map_add_action_entries (G_ACTION_MAP (doc_actions), doc_entries, G_N_ELEMENTS (doc_entries), win);
 
   g_action_map_add_action_entries (G_ACTION_MAP (win), win_entries,
                                    G_N_ELEMENTS (win_entries), win);